package ink.metoo.gude.properties

import ink.metoo.gude.GudeServerApplication.Companion.BASE_CONFIG_PREFIX
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.stereotype.Component
import java.time.Duration
import java.util.*

@Component
@ConfigurationProperties("${BASE_CONFIG_PREFIX}.security.jwt")
class JwtProperties(
    var secret: String = UUID.randomUUID().toString(),
    var expirationTime: Duration = Duration.ofDays(7)
)